import axios from 'axios'

const admin= {
    // 获取管理员数据
    getAllAdmins: function () {
        return axios({
            url: '/admin/getAllAdmins',
            method: 'GET',
         
        })
    },
    //新增管理员数据
    addAdmins: function (data) {
        return axios({
            url: '/admin/addAdmins',
            method: 'POST',
            data
        })
    },
    //删除管理员
    delAdmins: function (data) {
        return axios({
            url: '/admin/delAdmins',
            method: 'POST',
            data
        })
    },

}
export default admin;





